﻿namespace Colorful.Furniture.EnterpriseManagement;

/// <summary>
///  会话聊天成员列表
/// </summary>
public class ChatMemberListOutputDto
{
    /// <summary>
    ///  头像
    /// </summary>
    public string ToChatAvatar { get; set; }

    /// <summary>
    ///  接收聊天的编码，单个用户则是user_id 群聊的话则是roomid
    /// </summary>
    public string ToChatId { get; set; }

    /// <summary>
    ///  是否是群聊
    /// </summary>
    public bool IsGroup { get; set; }

    /// <summary>
    ///  名字
    /// </summary>
    public string ToChatName { get; set; }

    /// <summary>
    ///  最后聊天时间，格式：22/05/24
    /// </summary>
    public string LastChatTime { get; set; }

    /// <summary>
    ///  最后聊天时间，格式20220524
    /// </summary>
    public long? LastChatTime2 { get; set; }

    /// <summary>
    /// 最后发送的消息
    /// </summary>
    public string LastMsgTxt { get; set; }
}

/// <summary>
///  聊天内容分页输出
/// </summary>
public class ChatContentPagedOutputDto
{
    /// <summary>
    ///  发送者id
    /// </summary>
    public string SenderId { get; set; }

    /// <summary>
    ///  消息时间
    /// </summary>
    public string MsgTime { get; set; }

    /// <summary>
    ///  消息
    /// </summary>
    public string Text { get; set; }

    /// <summary>
    ///  发送者用户名字
    /// </summary>
    public string FromUser { get; set; }

    /// <summary>
    ///  头像
    /// </summary>
    public string Avatar { get; set; }
}